# Contributor: Guy Godfroy <guy.godfroy@gugod.fr>
# Maintainer: Guy Godfroy <guy.godfroy@gugod.fr>
pkgname=synadm
pkgver=0.46.1
pkgrel=0
pkgdesc="Command line admin tool for Synapse"
url="https://github.com/JOJ0/synadm"
arch="noarch"
license="GPL-3.0-or-later"
depends="py3-tabulate py3-click py3-requests py3-yaml py3-click-option-group py3-dnspython"
makedepends="py3-gpep517 py3-setuptools py3-wheel"
source="$pkgname-$pkgver.tar.gz::https://github.com/JOJ0/synadm/archive/refs/tags/v$pkgver.tar.gz"
options="!check" #no check provided
subpackages="$pkgname-pyc"

build() {
	gpep517 build-wheel \
		--wheel-dir .dist \
		--output-fd 3 3>&1 >&2
}

package() {
	python3 -m installer -d "$pkgdir" \
		.dist/*.whl
}

sha512sums="
dc7cdc9a71c563dfdcb82de6d205b8305c485c855540fc7cda32bef192fc8ec91d77b6484c9ccd164dd3598337249aba05a6bae84c8ba7febcc2880fa0b424da  synadm-0.46.1.tar.gz
"
